package com.glsc.ngateway.opmanage.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LedgerDesktopDtoItem implements Serializable {
    private static final long serialVersionUID = -3535771980676644174L;


    private Integer ledgerId;

    private Integer taskId;


    @ApiModelProperty(value = "台账名称")
    private String ledgerName;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "完成人id")
    private Long finishId;

    @ApiModelProperty(value = "完成人名称")
    private String finishUserName;

    @ApiModelProperty(value = "员工oa账号")
    private String userOaAccount;

    @ApiModelProperty(value = "岗位名称")
    private String postName;

    @ApiModelProperty(value = "完成时间 yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createTime;


}
